<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="../common/lib.jsp"></jsp:include>
<script src="<%=basePath%>js/system/PurchaseOrder.js"
	type="text/javascript"></script>
</head>
<body>
	<div class="container-fluid">
		<div class="info-center">
			<div class="page-header">
				<div class="pull-left">
					<h4>订单管理中心</h4>
				</div>
			</div>

			<div class="page-header">订单管理</div>

			<div id="qywine" style="display:block;">
				<button class="btn btn-primary btn-sm addBtn" onclick="purchaseorderadd()">新
					增</button>
				<button class="btn btn-danger btn-sm" onclick="deleteAll()">批量删除</button>
			</div>

			<div class="clearfix"></div>

			<div class="table-margin">
				<table class="table table-bordered table-header"
					id="purchaseOrderid">
					<thead>
						<tr>
							<th><input type="checkbox" name="allChecked" /></th>
							<th>id</th>
							<th>用户名</th>
							<th>采购订单</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody></tbody>
				</table>
			</div>
		</div>
		<div class="show-page hidden">
			<ul>
			</ul>
		</div>
	</div>


	<!-- 弹出订单详情框 -->
	<div class="modal fade" id="purchaseorder-detail" tabindex="-1"
		role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">订单详情</h4>
				</div>
				<div class="modal-body">
					<table width="100%" class="table table-bordered table-header">
						<tr>
							<th>酒ID</th>
							<th>采购酒类型</th>
							<th>采购数量</th>
						</tr>
						<tbody id="winemessages"></tbody>
					</table>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<!-- <button type="button" class="btn btn-primary" id="btnsubmit"
								onclick="syuserupdatetj()">提交</button> -->
				</div>
			</div>
		</div>
	</div>
	
	<!-- 新增 -->
	<div class="modal fade" id="purchaseorder-add-info" tabindex="-1" role="dialog"
                 aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close"
                                    data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                            <h4 class="modal-title" id="myModalLabel">
                                添加订单
                            </h4>
                        </div>
                        <form class="form-horizontal" role="form" action="" method="post"  id="category_add">
                            <div class="modal-body">
                                <div class="form-group" style="display: none">
                                    <label class="col-sm-3 control-label no-padding-right" >用户名 </label>

                                    <div class="col-sm-9">
                                        <input type="text"  id="username" value="<%=session.getAttribute("username") %>" />

                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >采购订单： </label>

                                    <div class="col-sm-9">
                                        <select class=" sortNumber form-control"  name="purchaseordertype" 
                                        id="purchaseordertype" style="width: 250px" onchange="checkedWine(this.value)"></select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >酒： </label>

                                    <div class="col-sm-9">
                                        <select class=" sortNumber form-control"  name="winetype" id="winetype" style="width: 250px" ></select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >数量： </label>

                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="roledetail" id="winenumber" style="width: 250px" maxlength="3"/>
                                    </div>
                                </div>
                           
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default"
                                        data-dismiss="modal">关闭
                                </button>
                                <button type="button" class="btn btn-primary" id="btnsubmit" onclick="purchaseorderaddtj()">提交
                                </button>
                            </div>
                        </form>
                    </div><!-- /.modal-content -->
                </div>
            </div>
	

</body>
</html>
